package name.fowler.refactoring.simplestore;

public class MovieChildrens extends AbstractMovie {
  private double coef = 1.5;

  public MovieChildrens(String title) {
    super(title);
  }

  @Override
  public double calcAmount(int rentalDays) {
    if (rentalDays > 3)
      return (rentalDays - 3) * 1.5;
    return coef;
  }
}
